package com.oauth.components.client.ui.windows;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DecoratedStackPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;

public class CricketScoreWindow extends Composite {

	private static JoinMemberWindowUiBinder uiBinder = GWT
			.create(JoinMemberWindowUiBinder.class);

	interface JoinMemberWindowUiBinder extends UiBinder<Widget, CricketScoreWindow> {
	}

	HTML cricketScorePanel;
	
	@UiField
	DecoratedStackPanel stackPanel;

	public CricketScoreWindow() {
		initWidget(uiBinder.createAndBindUi(this));
		//stackPanel.setStackText(0,"<div class=\"stackText\">Join this site</div>",true);
		cricketScorePanel = new HTML(getHardHTML(),true);
		stackPanel.add(cricketScorePanel,"<div class=\"stackText\">Live Cricket </div>",true);
	}
	
	public String getHardHTML(){
		return "<!-- VCricket Score Feed Code Start v 3.00 -->" +
				"<script language=\"JavaScript\" type=\"text/JavaScript\" src=\"http://ifeed.vcricket.com/get_code.aspx?dk=77B71A79E8C94F59A81840BE1E4A6988&amp;sc=&amp;sz=180x320\"></script>"+
		"<noscript><a href=\"http://www.vcricket.com/help.aspx?q=java_disable\"  target=\"_blank\">"+
		"<img src=\"/images/error_java_180x320.gif\"  alt=\"Javascript is disabled.\" width=\"180\" height=\"320\" border=\"0\" /></a></noscript>"+
		"<!-- Please note this will not work if directly run in browser. --><!-- VCricket Score Feed Code End -->";
	}
	
}
